<%@ page language="java" contentType="text/html"  pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="lcfms" uri="/WEB-INF/tld/lcfms.tld" %>	
<!DOCTYPE html>																
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes"> 
		
		<link rel="stylesheet" href="${CSS}bootstrap.min.css">
		<link rel="stylesheet" href="${CSS}iconfont.css"/>	
		<link rel="stylesheet" href="${CSS}form.css">
		<script src="${JS}jquery-3.2.1.min.js"></script>
		<script src="${JS}bootstrap.min.js"></script>
		<script src="${JS}../../layer/layer.js"></script>
		<script src="${JS}form.js"></script>
	</head>
	<body>
		<div class="container-fluid">
			<div class="row">
				<div class="form-box form-color-grey">
					
					<form class="form-horizontal" method="post" action="addEmail" name="myform"> 
						<div class="form-body">
							<div class="form-group">
								<div class="col-sm-10">
									<textarea name="contentmessage" class="form-control" rows="20"></textarea>
									<input type="file" name="pics"></input>
								</div>
							</div>
						</div>
						<div class="form-footer">
							<div class="form-group">
								<label class="col-sm-2">
								</label>
								<div class="col-sm-10">
									<button type="button" id="save" class="btn btn-sm btn-grey">
										<i class="fa fa-check">
										</i>
										提交
									</button>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
		<script>	
		var myform=form.init("myform");	
		$("#save").click(function(){
			myform.submit(function(res){
				layer.msg(res.msg);
			});
		});
		$("#reset").click(function(){
			myform.reset();
		});
		</script>
	</body>
</html>				
				
				
				